package lcy.homework02;

/**
 * @ClassName: ControllerMain
 * @Description: 酒鬼启动类
 * @author: 李春洋
 * @date: 2024/3/30 17:25
 * @Blog: https://
 */
public class ControllerMain {
    public static void main(String[] args) {
        Drunkard drunkard = new Drunkard();
        System.out.println("开始的坐标: (" + drunkard.getLocation().x + ", " + drunkard.getLocation().y + ")");

        for (int i = 0; i < 10; i++) {
            Point step = Point.getRandomStep();
            drunkard.takeStep(step);
            System.out.println("移动步数 " + (i + 1) + " 坐标: (" + drunkard.getLocation().x + ", " + drunkard.getLocation().y + ")");
        }
    }
}
